# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

_npmname=electron-packager
pkgname=nodejs-electron-packager
pkgver=15.2.0
pkgrel=1
pkgdesc='Customize and package your Electron app with OS-specific bundles (.app, .exe etc) via JS or CL.'
arch=('any')
url='https://www.npmjs.com/package/electron-packager'
license=('custom')
depends=('nodejs')
makedepends=('npm')
sha512sums=('05a9254c1450cb52538a3477862f17c477ffba8efaac76c308d33f7901d26e5cc4f42d0da0d7ce7bcea73f107bcb5bb68f096aa04278cc5887a53162a0a18644')
source=("http://registry.npmjs.org/$_npmname/-/$_npmname-$pkgver.tgz")
noextract=("$_npmname-$pkgver.tgz")

package() {
  _npmdir="$pkgdir/usr/lib/node_modules/"

  install -dm 755 "$_npmdir"

  cd "$_npmdir"

  npm install -g --prefix "$pkgdir/usr" "$_npmname@$pkgver"
}

